package vip.fkandy.fkandyspringbootlogback.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.atomic.AtomicInteger;

@RestController
@Slf4j
public class LogController {
    private static AtomicInteger count = new AtomicInteger(1);
    @GetMapping
    public void test(){
        while(true){
            log.info("执行次数->"+count.incrementAndGet());
            log.info("这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试" +
                    "这是二个测试这是二个测试这是二个测试这是二个测试这" +
                    "是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试" +
                    "这是二个测试这是二个测试这是二个测试这是二个测试这是二个测试");
        }
    }
}
